import { createRouter,createWebHistory } from "vue-router";
const router = createRouter({
    history:createWebHistory(),
    routes:[
        {
            path: "/",
            component: () => import("@/view/login/login"),
            name:'login'
        },
        {
            path: "/menu",
            component: () => import("@/view/menu/menu"),
            name:'menu',
            redirect: '/menu/index',
            children:[
                {
                    path: "index",
                    component: () => import("@/view/menu/index/index"),
                    name:'index'
                },
                {
                    path: "logOff",
                    component: () => import("@/view/menu/logOff/logOff"),
                    name:'logOff'
                },
                {
                    path: "shopping",
                    component: () => import("@/view/menu/shopping/shopping"),
                    name:'shopping'
                },
                {
                    path: "userInfo",
                    component: () => import("@/view/menu/userInfo/userInfo"),
                    name:'userInfo'
                }
            ]
        }
    ]
})
export default router;
